import notification from 'ant-design-vue/es/notification'

export const okmsg = (data) => {
  const message = (data && data.message) || '操作成功'
  notification.success({ message: message })
}

export const failmsg = (data) => {
  notification.error({
    message: '操作异常[' + data.code + ']',
    description: data.msg,
  })
}
